package cn.livingCloud.controller.user.front;

import cn.livingCloud.dto.MemberInfoDto;
import cn.livingCloud.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 唐旭 on 2015/12/30.
 */
@Controller
@RequestMapping("/member")
public class MemberFrontController {
    @Autowired
    private MemberService service;

    @RequestMapping("/my.htm")
    public String my(Model model) {
        MemberInfoDto info = service.loadMemberInfoDto();
        model.addAttribute("info", info);
        return "front/member/my";
    }
}
